package com.iraeta.entity.vo;

import com.iraeta.entity.TreeNode;
import com.iraeta.entity.PermissionType;
import java.util.ArrayList;

public class SysPermission {
    public static ArrayList<TreeNode> getPermissionTreeNode(){
        TreeNode gift_Node = new TreeNode(String.valueOf(PermissionType.gift), "礼品信息");
        TreeNode gift_Type_Node = new TreeNode(String.valueOf(PermissionType.gift_Type), "礼品分类");
        TreeNode gift_Admin_Node = new TreeNode(String.valueOf(PermissionType.gift_Admin), "礼品管理");
        gift_Node.addNode(gift_Type_Node);
        gift_Node.addNode(gift_Admin_Node);

        TreeNode order_Node = new TreeNode(String.valueOf(PermissionType.order), "我的订单");
        TreeNode order_admin_Node = new TreeNode(String.valueOf(PermissionType.order_admin), "礼品订单");
        TreeNode order_teshu_Node = new TreeNode(String.valueOf(PermissionType.order_teshu), "特殊礼品订单");
        order_Node.addNode(order_admin_Node);
        order_Node.addNode(order_teshu_Node);

        TreeNode shenHe_Node = new TreeNode(String.valueOf(PermissionType.shenHe), "订单审核");
        TreeNode order_shenHe_Node = new TreeNode(String.valueOf(PermissionType.order_shenHe), "订单审核");
        TreeNode order_shenHe2_Node = new TreeNode(String.valueOf(PermissionType.order_shenHe2), "特殊订单审核");
        TreeNode order_shenHe_his_Node = new TreeNode(String.valueOf(PermissionType.order_shenHe_his), "审核历史");
        shenHe_Node.addNode(order_shenHe_Node);
        shenHe_Node.addNode(order_shenHe2_Node);
        shenHe_Node.addNode(order_shenHe_his_Node);

        ArrayList<TreeNode> res = new ArrayList<TreeNode>();
        res.add(gift_Node);
        res.add(order_Node);
        res.add(shenHe_Node);
        return res;
    }
}
